// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

// import 'package:app_links/app_links.dart';
import 'package:casdon/app/config/env/dev_config.dart';
import 'package:casdon/core/encrypt/secure_encryptor.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  testWidgets('Counter increments smoke test', (WidgetTester tester) async {
    // Build our app and trigger a frame.
    final encryptor = SecureEncryptor(DevConfig());
    encryptor.generateAesKey();
    encryptor.encryptData("{userName: null}");
    encryptor.encryptAesKeyWithRsa();
  });
}

void testAppLinks() {
  final appLinks = AppLinks();

  // 模拟收到链接（仅测试用）
  // appLinks.setTestInitialUri(Uri.parse('https://yourdomain.com/product/456'));

  // 或者监听测试流
  appLinks.uriLinkStream.listen((uri) {
    debugPrint('测试链接: $uri');
  });
}

//Kool+/SEPCJkMXk412DZdnk+CS5P058tvOfCyZZhdcM6/hisPzcuojpgoY2mCyUqmK+DYz9Qt7rWlVgVOg73DEP9vlP1LGML9tvNbaDuQ3w9sLZV3WM0ktfIXDcMdEWIfkEv+H4U4VPUO+8j1u5kXaBuVoj2+6/zHEGcXOuoc7RqkGFQNr1z+l5TeFzt9S2H2YU3o4suD6Vlp3pG8SbHyr/jLRagfe3eshKD+wwyg+XT2maqVO7UQlN9ZdWvueA8wrE7Lb0eXIi/dsV3GAsk9+3i47aWjvXRm/0DW0qdI5SAgZLxFPS5YDD0PR/wX3uQ8Or0cfKyy7WGa3xZ35ObTA==
